package ch8.encapsulateCollection;

import lombok.Data;

import java.util.HashSet;
import java.util.Set;

@Data
public class Person {
    private Set _course = new HashSet();

    public void addCourse(Course course){
        this._course.add(course);
    }

    public void removeCourse(Course course){
        this._course.remove(course);
    }

}
